Release 10.1A: OpenEdge Development:
ProDataSets
Using the AUTO-SYNCHRONIZE attribute
As we have discussed, Progress doesn’t automatically synchronize all relation queries whenever any of them are positioned to a different row, because the expense of this could be considerable in some cases, and might not always be wanted. When a browse widget is initially filling the viewport, for example, it repositions its underlying query as it transfers values for each row to the browse, until the viewport is filled. It makes no sense to refilter and reopen child relation queries for each momentarily selected parent row. Beyond this, these relation queries are provided for convenience only, and many application situations might not make use of them at all.
However, in situations where the parent table of a Data-Relation is not viewed in a Progress browse control, and where the application is making use of the relation queries, it can simplify the programming not to have to insert
SYNCHRONIZEmethods in all the places where the current row position might be changed. To support this, there is anAUTO-SYNCHRONIZELogical attribute available for both the ProDataSet and each ProDataSet temp-table buffer. This is initiallyFALSEand is never set toTRUEby Progress. If it is set toTRUEby the application, then every change of row position in an affected ProDataSet buffer causes aSYNCHRONIZEautomatically, just as invoking theSYNCHRONIZEmethod would do. Setting the attribute toTRUEfor the ProDataSet effectively sets it toTRUEfor all its buffers. Otherwise, you can selectively set it for individual buffers where you want the automated synchronize behavior.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |